<%--
    Document   : usershow
    Created on : 2012-3-7, 14:45:21
    Author     : xiaoxiao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="s"  uri="/struts-tags"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>试卷列表</title>
        <link href="css/global.css" rel="stylesheet" type="text/css">
        <script  type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $('table.striped tr:even').addClass('even');
                $('table.striped tbody tr').mouseover(function() {
                    $(this).addClass('highlight');
                    $(this).css('cursor','pointer');
                }).mouseout(function() {
                    $(this).removeClass('highlight');
                });
            });
        </script>
    </head>
    <body>
        <div id="examup">
            <s:form action="epageAction" method="post">
                <input type="text" name="search"  id="chaxun">
                <input type="submit" value="查询" id="search">
            </s:form>

            <s:form action="examdeletemany" method="post" >
                <table id="examshow" class="striped">
                    <thead>
                        <tr>
                            <th>选择</th>
                            <th>试卷号</th>
                            <th>名称</th>
                            <th>描述</th>
                            <th>创建时间</th>
                            <th>编辑</th>
                            <th>手动出卷</th>
                            <th>自动出卷</th>
                            <th>删除</th>
                        </tr>
                    </thead>
                    <tbody>
                        <s:iterator value="allexam" status="st">
                            <tr>
                                <td width="30px"><input type="checkbox" name="eid" value="<s:property value="eid"></s:property>"></td>
                                <td width="50px"><s:property value="eid"></s:property></td>
                                <td><s:property value="name"></s:property></td>
                                <td><s:property value="descript"></s:property></td>
                                <td width="150px"><s:property value="creattime"></s:property></td>
                                <td width="40px"> <a href="examview.action?eid=<s:property value="eid"></s:property>">编辑</a></td>
                                <td width="60px"> <a href="examshouxuan.jsp?eid=<s:property value="eid"></s:property>">手动出卷</a></td>
                                <td width="60px"> <a href="examauto.jsp?eid=<s:property value="eid"></s:property>">自动出卷</a></td>
                                <td width="40px"> <a href="examdelete.action?eid=<s:property value="eid"></s:property>">删除</a></td>
                            </tr>
                        </s:iterator>
                    </tbody>
                </table>
                <input type="submit" name="button" id="submit" value="删除所选">
                <input type="button" name="button" id="submit" value="增加试卷"
                       onClick="location='examadd.jsp'">
            </s:form>

            <div id="fanye">
                <div id="ye">
                    共<s:property value="num"></s:property>条 &nbsp;
                    <s:property value="pagenumber"></s:property>/<s:property value="totalpage"></s:property>页
                    <s:url id="firstpage" action="epageAction">
                        <s:param name="pagenumber">1</s:param>
                    </s:url>
                    <s:a href="%{firstpage}">首页</s:a>

                    <s:url id="prepage" action="epageAction">
                        <s:param name="pagenumber">
                            <s:property value="pagenumber-1"></s:property>
                        </s:param>
                    </s:url>
                    <s:a href="%{prepage}">上一页</s:a>

                    <s:url id="nextpage" action="epageAction">
                        <s:param name="pagenumber">
                            <s:property value="pagenumber+1"></s:property>
                        </s:param>
                    </s:url>
                    <s:a href="%{nextpage}">下一页</s:a>

                    <s:url id="lastpage" action="epageAction">
                        <s:param name="pagenumber">
                            <s:property value="totalpage"></s:property>
                        </s:param>
                    </s:url>
                    <s:a href="%{lastpage}">末页</s:a>
                </div>
                <div id="go">
                    <s:form action="epageAction">
                        转到  第 <s:textfield id="tf" name="pagenumber" ></s:textfield> 页 <s:submit id="submit" value="GO"></s:submit>
                    </s:form>
                </div>
            </div>
        </div>
    </body>
</html>
